package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishGrowthMapper;
import com.findFish.fish.domain.FishGrowth;
import com.findFish.fish.service.IFishGrowthService;

/**
 * 鱼类生长记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class FishGrowthServiceImpl implements IFishGrowthService 
{
    @Autowired
    private FishGrowthMapper fishGrowthMapper;

    /**
     * 查询鱼类生长记录
     * 
     * @param id 鱼类生长记录主键
     * @return 鱼类生长记录
     */
    @Override
    public FishGrowth selectFishGrowthById(Long id)
    {
        return fishGrowthMapper.selectFishGrowthById(id);
    }

    /**
     * 查询鱼类生长记录列表
     * 
     * @param fishGrowth 鱼类生长记录
     * @return 鱼类生长记录
     */
    @Override
    public List<FishGrowth> selectFishGrowthList(FishGrowth fishGrowth)
    {
        return fishGrowthMapper.selectFishGrowthList(fishGrowth);
    }

    /**
     * 新增鱼类生长记录
     * 
     * @param fishGrowth 鱼类生长记录
     * @return 结果
     */
    @Override
    public int insertFishGrowth(FishGrowth fishGrowth)
    {
        return fishGrowthMapper.insertFishGrowth(fishGrowth);
    }

    /**
     * 修改鱼类生长记录
     * 
     * @param fishGrowth 鱼类生长记录
     * @return 结果
     */
    @Override
    public int updateFishGrowth(FishGrowth fishGrowth)
    {
        return fishGrowthMapper.updateFishGrowth(fishGrowth);
    }

    /**
     * 批量删除鱼类生长记录
     * 
     * @param ids 需要删除的鱼类生长记录主键
     * @return 结果
     */
    @Override
    public int deleteFishGrowthByIds(Long[] ids)
    {
        return fishGrowthMapper.deleteFishGrowthByIds(ids);
    }

    /**
     * 删除鱼类生长记录信息
     * 
     * @param id 鱼类生长记录主键
     * @return 结果
     */
    @Override
    public int deleteFishGrowthById(Long id)
    {
        return fishGrowthMapper.deleteFishGrowthById(id);
    }
}
